# coding: utf-8
import hashlib
from django.contrib.auth.models import AbstractBaseUser, User, PermissionsMixin, BaseUserManager
from django.db import models
from django.utils import timezone
from django.conf import settings
from common.models.base import BaseModel
from common.models.position import JPositionCounty, JPositionTown, JPositionVillage


class Hamlet(BaseModel):
    intro = models.CharField(max_length=2000)
    img = models.ImageField(upload_to='static/var/', max_length=255, verbose_name=u'头像', default='static/var/default_hamlet.png')

    class Meta:
        app_label = 'common'
        db_table = 'hamlet'


class Servant(BaseModel):

    intro = models.CharField(max_length=2000)
    img = models.ImageField(upload_to='static/var/', max_length=255, verbose_name=u'头像', default='static/var/default_hamlet.png')

    class Meta:
        app_label = 'common'
        db_table = 'hamlet'